<?php

class productTable extends Doctrine_Table
{
    public function showPublished($category){
        $result = Doctrine::getTable('product')->createQuery('a')->where('a.published = ?', true)->andWhere('a.category_id = ?', $category);
        return $result;
    }
}
